package com.pb.wkflow.core.service;

import com.alibaba.fastjson.JSONArray;
import org.camunda.bpm.engine.repository.ProcessDefinition;
import org.camunda.bpm.model.bpmn.BpmnModelInstance;

/**
 * @author 苗益辉
 * @date 2022/5/25 19:25
 */
public interface WorkflowModelService {

    /**
     * 创建空画布
     * @param modelInstance modelInstance
     */
    void createEmptyBpmnModel(BpmnModelInstance modelInstance);

    /**
     * JSON 转 bpmn
     * @param modelInstance modelInstance
     * @param childShapes childShapes
     * @param processDefinition processDefinition
     */
    void createBpmnModel(BpmnModelInstance modelInstance, JSONArray childShapes, ProcessDefinition processDefinition);
}
